.add-admin-page {
  min-height: 100vh;
  background-color: #f5f7fa;
}

.main-content {
  padding: 50px;
  width: 80%;
  margin-top: 15px;
  margin-left: 78px;
}

.admin-form {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.info-header {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
  color: #000000;
}



.form-content {
  margin-bottom: 30px;
}

.form-row {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}

.form-item {
  flex: 1;
  display: flex;
  align-items: center;
}

.form-item label {
  width: auto;
  min-width: 180px;
  color: #333;
  text-align: right;
  padding-right: 15px;
}



.error-message {
  color: #F56C6C;
  font-size: 12px;
  margin-top: 0px;
  min-height: 18px;
  line-height: 1;
}

.permissions-section {
  margin-top: 40px;
  margin-left: 50px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-label {
  color: #333;
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: -35px;
  margin-bottom: 30px;
  margin-left: 160px;
}


.special-permissions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-left: 160px;
}


.permission-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.permission-row .el-select {
  width: 200px;
}

.form-actions {
  display: flex;
  justify-content: center;

  margin-top: 20px;
}

:deep(.el-button) {
  padding: 12px 30px;
  min-width: 120px;
}

:deep(.el-button--primary) {
  background-color: #1e88e5;
  border-color: #1e88e5;
}

:deep(.el-button--primary:hover) {
  background-color: #1976d2;
  border-color: #1976d2;
}

/* 自定义复选框样式 */
:deep(.custom-checkbox .el-checkbox__input .el-checkbox__inner) {
  border-radius: 4px;
  width: 18px;
  height: 18px;
  background-color: #f5f7fa;
  border: 1px solid #dcdfe6;
}

:deep(.custom-checkbox .el-checkbox__input.is-checked .el-checkbox__inner) {
  background-color: #1e88e5;
  border-color: #1e88e5;
  border-radius: 4px;
}

:deep(.custom-checkbox .el-checkbox__input.is-checked .el-checkbox__inner::after) {
  /* 隐藏默认的勾选图标 */
  border: none;
  /* 创建一个填充的方块 */
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 2px;
  left: 3px;
  top: 3px;
}

:deep(.custom-checkbox .el-checkbox__input.is-checked + .el-checkbox__label) {
  color: #1e88e5;
}

:deep(.el-input__wrapper) {
  margin-top: 10px;
  background-color: #fff;
}

:deep(.el-input__inner) {
  height: 40px;
}